<html>
<head>
<#include "common.ftl">
    <title>销售管理</title>
    <script type="text/javascript" src="${ctx}/js/common.js"></script>
    <script type="text/javascript" src="${ctx}/js/base.js"></script>
    <script type="text/javascript" src="${ctx}/js/saleDrug.js"></script>

</head>

<body>
<table id="dg" class="easyui-datagrid" pagination=true
       toolbar="#tb" fit=true
       url="${ctx}/user/saleDrug/querySaleDrugByParams">
    <thead>
    <tr>
        <th field='id' checkbox=true></th>
        <th field='drugid'>药品编号</th>
        <th field='drugName'>药品名称</th>
        <th field='drugnum'>药品数量</th>
        <th field='totalprice'>总价</th>
        <th field='createDate' formatter="formatterDate">创建时间</th>
        <th field='updateDate' formatter="formatterDate">更新时间</th>
        <th field='isvalid' formatter="formatterIsValid">状态</th>
    </tr>
    </thead>
</table>
<div id="tb">
    <a href="javascript:openAddSaleDrugDialog()" class="easyui-linkbutton"
       plain=true iconCls="icon-save">药品销售</a>
    <a href="javascript:deleteSaleDrug()" class="easyui-linkbutton" plain=true iconCls="icon-remove">删除记录</a>
    <br/>
    <!-- 搜索条件配置 -->
    销售单号:<input type="text" name="saleId" id="saleId"/>
    药品编号：<input type="text" name="drugId" id="drugId"/>
</select>
    <a href="javascript:searchSaleDrugByParams()" class="easyui-linkbutton"
       iconCls="icon-search">搜索</a>`
</div>


<div id="dlg" class="easyui-dialog" style="width: 400px;height: 300px"
     closed=true buttons="#bt">

    <form id="fm" method="post" >
        药品编号:<input name="drugid" type="text" required="required"/><br/>
        药品数量:<input name="drugnum" type="text" required="required"/><br/>
        <input name="id" id="id" type="hidden"/>
    </form>
</div>

<div id="bt">
    <a href="javascript:saveSaleDrug()" class="easyui-linkbutton" iconCls="icon-save">保存</a>
    <a href="javascript:closeSaleDrugDlg()" class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
</div>
</body>
</html>